<% includeFileTemplate("../_header.html"){} %>

<body>
 <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">管理平台</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="${request.ContextPath}/adminmg/">首页</a></li>
            <li class="active"><a href="${request.ContextPath}/adminmg/loginout">退出</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

<div class="container" >
<div style="margin: 80px;"></div>
<div style="margin: 5px 0 ;"><a href="javascript :;"  class="btn btn-default " onClick="javascript :history.back(-1);">返回上一页</a></div>
<form class="form"  action="${request.ContextPath}/adminmg/saveByid" method="post" >
			<div class="form-group has-feedback">
			     <label  class="control-label"for="mobile">ID号 *</label>
    			 <input type="text" id="mobile" class="form-control" name ="id" readonly  value="${list.id}">
			  </div>
			<!-- 
			  <div class="form-group has-error has-feedback">
			     <label  class="control-label"for="mobile">手机号 *</label>
    			 <input type="text" id="mobile" class="form-control" name ="mobile" placeholder="Enter mobile" value="${list.username}">
			  </div>
			  <div class="form-group has-error has-feedback">
			   
			    <input type="hidden"   name="password"   value="${list.password}">
			  </div>
			  <div class="form-group has-error has-feedback">
			     <label class="control-label" for="card">身份证号 *</label>
    			 <input type="text" id="card" class="form-control" name ="card"  value="${list.card}" placeholder="Enter Card">
			  </div>
			  <div class="form-group has-error has-feedback">
			     <label class="control-label" for="real_name">真实姓名 *</label>
    			 <input type="text" id="real_name" class="form-control" name ="real_name" value="${list.real_name}" placeholder="Enter Name">
			  </div>
			   -->
			  <div class="form-group  has-success has-feedback">
			     <label class="control-label"  for="short_name">昵称</label>
    			 <input type="text" id="short_name" class="form-control" name ="short_name" value="${list.short_name}" placeholder="Enter Name">
			  </div>
			  <div class="has-success">
			  <label for="dtp_input" class="col-md-2 control-label">性别</label>
				  <div class="checkbox">
				    <label>
				      <input type="radio"  name="sex"  <% if (list.sex == "男") {%> checked="checked"  <%}%> value="男">
				      男
				    </label>
				    <label>
				      <input type="radio"  name="sex"  <% if (list.sex == "女") {%> checked="checked"  <%}%> value="女">
				      女
				    </label>
				  </div>
				</div>
			  <div class="form-group has-success has-feedback">
                <label for="dtp_input2" class="col-md-2 control-label">身高</label>
			  <div class="input-group">
				  <input type="text" class="form-control" name="high" value="${list.high}">
				  <span class="input-group-addon">cm</span>
				</div>
				</div>
				<div class="form-group has-success has-feedback">
                <label for="dtp_input2" class="col-md-2 control-label" >体重</label>
			  <div class="input-group">
				  <input type="text" class="form-control" name="weight" value="${list.weight}">
				  <span class="input-group-addon">kg</span>
				</div>
				</div>
			  <div class="form-group has-success has-feedback">
                <label for="dtp_input2" class="col-md-2 control-label">出生年月</label>
                <div class="input-group date form_date col-md-5" data-date="" data-date-format="dd MM yyyy" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
                    <input class="form-control" size="16" type="text"   value="${list.birthday}" readonly>
                    <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
					<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                </div>
				<input type="hidden" id="dtp_input2"  name="birthday"  value="${list.birthday}"/><br/>
            </div>
            <div class="has-success">
            <label for="dtp_input" class="col-md-2 control-label">房</label>
				  <div class="checkbox">
				    <label>
				      <input type="radio"  name="fang"  <% if (list.fang == "无") {%> checked="checked" <%}%> value="无">
				      无
				    </label>
				    <label>
				      <input type="radio"  name="fang"  <% if (list.fang == "有") {%> checked="checked" <%}%> value="有">
				       有
				    </label>
				  </div>
				</div>
				<div class="has-success">
				<label for="dtp_input2" class="col-md-2 control-label">车</label>
				  <div class="checkbox">
				    <label>
				      <input type="radio"  name="che"   <% if (list.che == "无") {%> checked="checked" <%}%> value="无">
				      无
				    </label>
				    <label>
				      <input type="radio"  name="che"   <% if (list.che == "有") {%> checked="checked" <%}%>  value="有">
				      有
				    </label>
				  </div>
				</div>
            <div class="form-group  has-success has-feedback">
			     <label class="control-label"  >学历/学校</label>
    			 <input type="text"   class="form-control" name ="education"  value="${list.education}">
			  </div>
			  <div class="form-group  has-success has-feedback">
			     <label class="control-label"  >家乡</label>
    			 <input type="text"   class="form-control" name ="hometown"  value="${list.hometown}">
			  </div>
			  <div class="form-group  has-success has-feedback">
			     <label class="control-label"  >职业</label>
    			 <input type="text"   class="form-control" name ="work"  value="${list.work}">
			  </div>
			  <div class="form-group  has-success has-feedback">
			     <label class="control-label"  >工作地区</label>
    			 <input type="text"   class="form-control" name ="workaddr"  value="${list.workaddr}">
			  </div>
			  <div class="form-group  has-success has-feedback">
			     <label class="control-label"  >自我简介</label>
			     <textarea class="form-control" rows="3" name ="myself"  >${list.myself}</textarea>
    			
			  </div>
			   <div class="form-group  has-success has-feedback">
			     <label class="control-label"  >交友要求</label>
			     <textarea class="form-control" rows="3" name ="others" >${list.others}</textarea>
			  </div>
			  <div class="form-group  has-success has-feedback">
			     <label class="control-label"  >推荐人（ID）</label>
    			 <input type="text"   class="form-control" name ="push"  value="${list.push}" >
			  </div>
			  <!-- 
			  <div class="has-success">
				<label for="dtp_input2" class="col-md-2 control-label">上墙</label>
				  <div class="checkbox">
				    <label>
				      <input type="radio"  name="up"   <% if (list.up == 0) {%> checked="checked" <%}%> value="0">
				      否
				    </label>
				    <label>
				      <input type="radio"  name="up"   <% if (list.up == 1) {%> checked="checked" <%}%>  value="1">
				      是
				    </label>
				  </div>
				</div>
				 -->
				<div class="has-success">
				<label for="dtp_input2" class="col-md-2 control-label">认证</label>
				  <div class="checkbox">
				    <label>
				      <input type="radio"  name="on"   <% if (on == 0) {%> checked="checked" <%}%> value="0">
				      未认证
				    </label>
				    <label>
				      <input type="radio"  name="on"   <% if (on == 1) {%> checked="checked" <%}%>  value="1">
				      已认证
				    </label>
				  </div>
				</div>
			  <!-- 
			   <div class="form-group">
			     <label for="top">头像</label>
			     
    			  <input  id="file_upload"  type="file" >
    			  
    			  <input type="text" name ="top" value="1" id="queue">
    			  <img id="toppic" src=""  class="img-responsive img-circle"/>
			  </div>
			   
			  <div>
			  <input  type="submit" class="btn btn-default btn-lg " value=" 提 交 ">
			  </div>-->
			</form>

</div>
</body>
<% includeFileTemplate("../_footer.html"){} %>
<script type="text/javascript">
$(function() {
	$('.form_date').datetimepicker({
		format: "yyyy-MM-dd ",
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0
    });
	
});
</script>
</html>